<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><{$one.merchant_name}> - 在线地图 - <{$cfg.webName}></title>
<link href="../favicon.ico" type="image/x-icon" rel="icon" />
<link href="../favicon.ico" type="image/x-icon" rel="shortcut icon" />
<meta name="keywords" content="<{$one.merchant_name}>,<{$cfg.keywords}>" >
<meta name="description" content="<{$one.merchant_name}>,<{$cfg.description}>" >
<meta name="author" content="<{$cfg.sysSupport}>" >
<meta name="copyright" content="<{$cfg.sysUser}>" >
<script type="text/javascript" language="javascript" src="http://api.map.baidu.com/api?v=1.4"></script>
<style type="text/css">
body, html,#allmap {width: 100%;height: 100%;overflow: hidden;margin:0;font-size: 12px;}
#l-map{height:100%;width:78%;float:left;border-right:2px solid #bcbcbc;}
#r-result{height:100%;width:20%;float:left;}
</style>
</head>
<body>
<div id="allmap"></div>
</body>
</html>
<script type="text/javascript" language="javascript">
var sContent =
"<h4 style='margin:0 0 5px 0;padding:0.2em 0'><{$one.merchant_name}></h4>" + 
"公司编号:<{$one.merchant_no}><br/>"+
"所在省市:<{$one.province_value}> <{$one.city_value}> <{$one.area_value}><br/>"+
"联系电话 :<{$one.tel}> <{$one.mobile}><br/>"+
"负责人: <{$one.contacts}><br/>"+
"地址:<{$one.address}><br/>";
var map = new BMap.Map("allmap");
var point = new BMap.Point("<{$one.lng}>", "<{$one.lat}>");
var marker = new BMap.Marker(point);
var infoWindow = new BMap.InfoWindow(sContent);  // 创建信息窗口对象
map.centerAndZoom(point, 15);
map.addOverlay(marker);
//添加默认缩放平移控件
map.addControl(new BMap.NavigationControl());
map.addControl(new BMap.ScaleControl());//添加比例尺控件
map.addControl(new BMap.OverviewMapControl());//添加缩略地图控件
map.enableScrollWheelZoom();//启用滚轮放大缩小，默认禁用
map.enableContinuousZoom();//启用地图惯性拖拽，默认禁用

marker.addEventListener("click", function(){          
   this.openInfoWindow(infoWindow);
});
</script>